package com.expense.common.dao.auth;

import com.expense.common.model.auth.AdminMenu;
import com.expense.common.model.auth.AdminUser;
import com.expense.common.config.BaseDao;
import org.beetl.sql.core.annotatoin.SqlResource;
import org.beetl.sql.core.engine.PageQuery;

import java.util.List;

@SqlResource("auth.adminUser")
public interface AdminUserDao extends BaseDao<AdminUser> {

    List<AdminUser> findAllEmployeeList();

    AdminUser findByWxUserId(long wxUserId);

    AdminUser findDetail(long id);

    List<Long> findIdByDepartmentId(Long departmentId);

    List<Long> findAllId();

    PageQuery<AdminUser> findListPage(PageQuery pageQuery);

    AdminUser findByUserNameAndPasswordAndDeleted(String username, String password);
    AdminUser findByUserName(String userName);

    List<AdminMenu> findMenusByUser(Long userId);

}
